import request from "@/utils/request"

// 查询所有学员
export const getStudents=(page)=>{
    return request.get("/student/getAll?page="+page)
}
// 添加学员
export const addAStudent=(student)=>{    
    return request.post("/student/add",student)
}
// 搜索学员
export const searchAStudent=(student_name)=>{    
    return request.get("/student/search?name="+student_name)
}
// 修改学员
export const updateAStudent=(student)=>{    
    return request.put("/student/update",student)
}
// 删除学员
export const deleteAStudent=(student_id)=>{    
    console.log(student_id);
    
    return request.delete("/student/delete?id="+student_id)
}